#!/bin/bash
# cslurm.sh <job_name> <cpu_number> <mem_size>

case "$1" in
	"-h" )
		echo ""
		echo "clurm.sh"
		echo "----------------"
		echo "Usage:"
		echo "	cslurm.sh <job_name> <cpu_number> <mem_size>"
		echo ""
		;;
	* )
		WorkDir=`pwd`
		cp $HOME/Documents/run.slurm $WorkDir
		sed -i "s/NAME/$1/g;/-n/s/-n 4/-n $2/;/--mem/s/32GB/$3GB/" run.slurm
		;;
esac
